package com.kaifamiao.date1109;

/**
 * 1、任意类型都可以通过 .class 来获得该类型对应的 java.lang.Class 对象
 * 2、java.lang.Class类的实例(对象) 表示正在运行的Java程序中的类和接口
 */
public class ClassTest1 {

	public static void main(String[] args) {
		Class<?> c = null ;
		
		c = int.class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );
		
		c = byte[].class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );
		
		c = boolean[][].class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );
		
		c = Integer.class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );

		c = String.class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );
		
		c = Object.class ;
		System.out.println( c.getSimpleName() + " , " + c.getCanonicalName() );
	}

}
